package TEST;

public class Game {
    public static void main(String[] args) {
        Role r1 = new Role("dyy",100,'女');
        Role r2 = new Role("尹",100,'男');
        r1.showRole();
        r2.showRole();
        while(true){
            r1.attack(r2);
            if(r2.getBoold()==0){
                System.out.println(r1.getName()+"k.o了"+r2.getName());
                break;
            }
            r2.attack(r1);
            if(r1.getBoold()==0){
                System.out.println(r2.getName()+"k.o了"+r1.getName());
                break;
            }
        }
    }
}
